<?php 
session_start();
if(isset($_SESSION['access'])){
$page = ($_SESSION['access'] == 0) ? 'studentmasterpage.php' : 'facultymasterpage.php';
include $page;
}
else{
echo $_SESSION['name'];
echo $_SESSION['access'];
echo "the session isnt working";
}

?>
<html>
<head>
</head>
<body>
</body>
<?php include 'footer.php'; ?>
</html>